<template>
  <div>
    <div class="row">
      <div style="flex-shrink: 0;font-size: 14px;">序号：</div><el-input size="mini"
        style="width: 60px;margin-right: 20px;" v-model="nodeModel.sort"></el-input>
      <div style="flex-shrink: 0;font-size: 14px;">是否显示：</div><el-switch v-model="nodeModel.isShow" :active-value="true"
        :inactive-value="false" active-color="#13ce66" inactive-color="#999999"></el-switch>
        <div style="margin-left: 20px;">
            <el-button @click="selectTemplate" size="mini">选用模版</el-button>
        </div>
    </div>

    
    <div v-if="!nodeModel.configDict.itemStyle.isShowForTabs">
      <div style="flex-shrink: 0;font-size: 14px;margin-left: 10px;font-size: 16px;font-weight: bold;margin-top: 20px;">
        课程路由参数：</div>
      <div class="row">
        <div style="width: 100%;"><el-input style="margin-left: 0px;" size="mini"
            v-model="nodeModel.configDict.componentStyle.query"></el-input></div>
        <!-- <div><el-button @click="selectItemList(nodeModel.configDict.componentStyle)" size="mini">选择</el-button></div> -->
      </div>
    </div>
  </div>
</template>

<script>
import custom from '@/components/jcupload/custom'
import jcSlider from '@/views/interface/composing/components/jc-slider'
export default {
  components: {
    custom,
    jcSlider
  },
  props: {
    nodeModel: {
      type: Object,
      default: res => { }
    }
  },
  data() {
    return {
      itemList: []
    }
  },
  methods: {
    insertAdvert() {
      this.$emit('insertAdvert', { name: this.nodeModel.componentModel.name })
    },
    deleteAdvert(index) {
      this.$emit('deleteAdvert', index)
    },
    selectItemList(item) {
      this.$emit('selectItemList', item)
    },
    selectTemplate(){
      this.$emit('selectTemplate')
    },
  }
}
</script>

<style lang="scss" scoped>
@import './commonStyle.scss';
</style>